﻿namespace hedefgrup.reports.renault.definitions
{
    using System;
    using System.Xml;

    public class optionDefinition : xmlNodeBasedClass
    {
        public optionDefinition(XmlNode optionNode) : base(optionNode)
        {
        }

        public string getText()
        {
            return base.getAttributeByName("text");
        }

        public int getValue()
        {
            return Convert.ToInt32(base.getAttributeByName("value"));
        }

        public override string ToString()
        {
            return (this.getValue() + ": " + this.getText());
        }
    }
}

